]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
padOsd: Add one to the >1 rings
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 3 Aug 2017 19:59:26 +0000 (21:59 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 3 Aug 2017 20:06:33 +0000 (22:06 +0200)
Ring leader/label SVG elements for the second ring are named *Ring2*.
We need to add one here for elements >1, this is consistent with strips.

https://bugzilla.gnome.org/show_bug.cgi?id=785358

js/ui/padOsd.js

index fb7ee6618597edc21ec8a543ef5f6bcb0c975912..34ef96bb9cd7c6876bf3be5ec94bc0db7f3e37db 100644 (file)
@@ -513,7 +513,7 @@ var PadDiagram = new Lang.Class({
     },
 
     getRingLabelCoords: function (number, dir) {
-        let numStr = number > 0 ? number.toString() : '';
+        let numStr = number > 0 ? (number + 1).toString() : '';
         let dirStr = dir == CW ? 'CW' : 'CCW';
         let labelName = 'LabelRing' + numStr + dirStr;
         let leaderName = 'LeaderRing' + numStr + dirStr;